import request from '@/utils/request'

// 查询考勤用户花名册列表
export function listKq_user(query) {
  return request({
    url: '/kaoqin/kq_user/list',
    method: 'get',
    params: query
  })
}

// 查询考勤用户花名册详细
export function getKq_user(id) {
  return request({
    url: '/kaoqin/kq_user/' + id,
    method: 'get'
  })
}

// 新增考勤用户花名册
export function addKq_user(data) {
  return request({
    url: '/kaoqin/kq_user',
    method: 'post',
    data: data
  })
}

// 修改考勤用户花名册
export function updateKq_user(data) {
  return request({
    url: '/kaoqin/kq_user',
    method: 'put',
    data: data
  })
}

// 删除考勤用户花名册
export function delKq_user(id) {
  return request({
    url: '/kaoqin/kq_user/' + id,
    method: 'delete'
  })
}
